using UnityEngine;

public class FollowMouseRotate : MonoBehaviour {

    public float moveSpeed = 5.0f;

    // Use this for initialization

    void Start()

    {

    }

    // Update is called once per frame
    private Vector3 vector3 ;

    void Update()
    {   
        if (true)
        {
            float y=Input.GetAxis("Mouse X");
            float x=Input.GetAxis("Mouse Y");


            transform.Rotate(Vector3.up*y,Space.World) ;
            
            Camera.main.transform.Rotate(Vector3.left*x,Space.Self) ;

            

        }
    }

}